
package org.springxrsk.modules.classes.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.classes.pojo.entity.QyClassesEntity;
import org.springxrsk.modules.classes.pojo.vo.QyClassesVO;
import java.util.Objects;

/**
 * 班级管理 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-15
 */
public class QyClassesWrapper extends BaseEntityWrapper<QyClassesEntity, QyClassesVO>  {

	public static QyClassesWrapper build() {
		return new QyClassesWrapper();
 	}

	@Override
	public QyClassesVO entityVO(QyClassesEntity qyClasses) {
		QyClassesVO qyClassesVO = Objects.requireNonNull(BeanUtil.copyProperties(qyClasses, QyClassesVO.class));

		//User createUser = UserCache.getUser(qyClasses.getCreateUser());
		//User updateUser = UserCache.getUser(qyClasses.getUpdateUser());
		//qyClassesVO.setCreateUserName(createUser.getName());
		//qyClassesVO.setUpdateUserName(updateUser.getName());

		return qyClassesVO;
	}


}
